import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import operatebag.*;

public class studentpage extends JFrame {
    JFrame jf=this;
    JButton all,bufen,back;
    public studentpage(){
        setTitle("学生成绩管理系统学生端");
        setLayout(new FlowLayout());
        setDefaultCloseOperation(2);
        setBounds(400,200,400,300);
        setResizable(false);
        all=new JButton("查看班级全部学生");
        all.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                try {
                    new showstudent();
                } catch (Exception ex) {
                    throw new RuntimeException(ex);
                }
            }
        });
        bufen=new JButton("学生学号精准查询");

        bufen.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                new namefind(0);
            }
        });
        back=new JButton("选择教师端");
        back.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                new realstart();
                jf.dispose();
            }
        });
        add(all);
        add(bufen);
        add(back);
        setVisible(true);
    }
}
